package com.foldingleaf.notice.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.foldingleaf.common.annotation.Excel;
import com.foldingleaf.common.core.domain.BaseEntity;

/**
 * 公告对象 notice
 * 
 * @author ajian
 * @date 2022-06-22
 */
public class Notice
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long noticeId;

    /** 标题 */
    @Excel(name = "标题")
    private String noticeTitle;

    /** 内容链接 */
    @Excel(name = "内容链接")
    private String noticeContentUrl;

    /** 内容 */
    @Excel(name = "内容")
    private String noticeContent;

    /** 图片 */
    @Excel(name = "图片")
    private String noticeImage;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateline;

    public void setNoticeId(Long noticeId) 
    {
        this.noticeId = noticeId;
    }

    public Long getNoticeId() 
    {
        return noticeId;
    }
    public void setNoticeTitle(String noticeTitle) 
    {
        this.noticeTitle = noticeTitle;
    }

    public String getNoticeTitle() 
    {
        return noticeTitle;
    }
    public void setNoticeContentUrl(String noticeContentUrl) 
    {
        this.noticeContentUrl = noticeContentUrl;
    }

    public String getNoticeContentUrl() 
    {
        return noticeContentUrl;
    }
    public void setNoticeContent(String noticeContent) 
    {
        this.noticeContent = noticeContent;
    }

    public String getNoticeContent() 
    {
        return noticeContent;
    }
    public void setNoticeImage(String noticeImage) 
    {
        this.noticeImage = noticeImage;
    }

    public String getNoticeImage() 
    {
        return noticeImage;
    }
    public void setDateline(Date dateline) 
    {
        this.dateline = dateline;
    }

    public Date getDateline() 
    {
        return dateline;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("noticeId", getNoticeId())
            .append("noticeTitle", getNoticeTitle())
            .append("noticeContentUrl", getNoticeContentUrl())
            .append("noticeContent", getNoticeContent())
            .append("noticeImage", getNoticeImage())
            .append("dateline", getDateline())
            .toString();
    }
}
